package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: day0423-pxx
 * @ClassName Spu
 * @description:
 * @author: 段阳
 * @create: 2024-04-29 20:24
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_spu")
public class Spu {
    /** spu id */
    @TableId(type = IdType.AUTO)
    private Long id ;
    /** 标题 */
    private String title ;
    /** 子标题 */
    private String subTitle ;
    /** 1级类目id */
    private Long cid1 ;
    /** 2级类目id */
    private Long cid2 ;
    /** 3级类目id */
    private Long cid3 ;
    /** 商品所属品牌id */
    private Long brandId ;
    /** 是否上架，0下架，1上架 */
    private Boolean saleable ;
    /** 是否有效，0已删除，1有效 */
    private Boolean valid ;
    /** 添加时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime ;
    /** 最后修改时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastUpdateTime ;

}